package com.xc.smart.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

/**
 * 
 *   @author mtl
 *   2021/6/8
 */   
/**
    * 用户表
    */
@Data
@TableName(value = "`user`")
public class User implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @JsonIgnore
    @TableField(value = "`password`")
    private String password;

    /**
     * 性别 1男 2女
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 用户标识分类 1普通用户 2开发人员 3技术大佬
     */
    @TableField(value = "tu_id")
    private Integer tuId;

    /**
     * 用户头像
     */
    @TableField(value = "user_avatar")
    private String userAvatar;

    /**
     * 个性签名
     */
    @TableField(value = "signature")
    private String signature;

    /**
     * 手机号
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 电子邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 注册时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 上次登陆时间
     */
    @TableField(value = "last_login_time")
    private Date lastLoginTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";

    public static final String COL_SEX = "sex";

    public static final String COL_TU_ID = "tu_id";

    public static final String COL_USER_AVATAR = "user_avatar";

    public static final String COL_SIGNATURE = "signature";

    public static final String COL_MOBILE = "mobile";

    public static final String COL_EMAIL = "email";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_LAST_LOGIN_TIME = "last_login_time";
}